package org.xlh.springboot308yml.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class SystemService {

    @Value("${myapp.username}")
    private String username;

    @Value("${myapp.gender}")
    private Boolean gender;

    @Value("${myapp.age}")
    private Integer age;

    @Value("${myapp.email}")
    private String email;

    public void printInfo() {
        System.out.println(username + " " + (gender? "男" : "女") + " " + age + " " + email);
    }
}
